from langchain_core.tools import tool
from random import randint


@tool("get_random_number")
def get_random_number():
    """此处为AI获取随机数的工具"""
    n = str(randint(0, 9))
    print("AI生成的数字为:",n)
    return n

